package main

import (
	"fmt"
	"strings"
)

func main()  {
	var str1 string
	var str_tmp = ""
	fmt.Print("please input your number: ")
	fmt.Scan(&str1)
	if  strings.Contains(str1[:2], "0b"){
		str_tmp = "01"     //二进制
	} else if strings.Contains(str1[:2],"0o") {
		str_tmp = "01234567"  //八进制
	} else if strings.Contains(str1[:2], "0x") {
		str_tmp = "0123456789abcdef"    //十六进制
	} else {
		str_tmp = "123456789"		//十进制
	}
	flag := 0
	for i:=2; i < len(str1); i++ {
		if strings.Contains(str_tmp,string(str1[i])) {
			flag = 1
		}else {
			flag = 0
			break
		}
	}
	if flag == 1 {
		fmt.Println("可以判断为整数")
	}else {
		fmt.Println("不是整数")
	}


}
